﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KATS_Client.UI
{
    /// <summary>
    /// The delete confirmation dialog
    /// </summary>
    public partial class DeleteConfirmationDialog : Form
    {
        /// <summary>
        /// The filename that is being deleted
        /// </summary>
        private string fileName = string.Empty;

        /// <summary>
        /// Create the confirmation dialog
        /// </summary>
        /// <param name="filename">The object to delete</param>
        public DeleteConfirmationDialog(string filename)
        {
            InitializeComponent();
            this.fileName = filename;
            this.label.Text = "Are you sure you want to delete \n'" + filename + "'?";
        }

        /// <summary>
        /// Create the confirmation dialog
        /// </summary>
        /// <param name="number">The number of items to delete</param>
        public DeleteConfirmationDialog(int number)
        {
            InitializeComponent();
            this.label.Text = "Are you sure you want to delete these " + number + " items?";
        }
    }
}
